package com.demo.config.filter;

import org.apache.shiro.web.filter.authc.FormAuthenticationFilter;

import javax.servlet.http.HttpServletRequest;

/**
 * <p></p>
 *@author zwy
 *@date 2023/8/11 0:20
*/
public class ShiroAuthcFilter extends FormAuthenticationFilter {
    private boolean isAjax(HttpServletRequest request) {
        String requestedWithHeader = request.getHeader("X-Requested-With");
        return "XMLHttpRequest".equals(requestedWithHeader);
    }
}
